package cn.gson.springmvc.model.services;/*
package cn.gson.springmvc.model.services;

import cn.gson.springmvc.model.dao.DemoDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class DemoService {

    @Autowired
    DemoDao dd;

    @Transactional(value ="transactionManager" ,rollbackFor = Exception.class)
    public List<DemoEntity> DemoAll(){
        return (List<DemoEntity>) dd.findAll();
    }

}
*/
